package com.mallsystem.common.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Collect implements Serializable {
    /**
     * 主键
     */
    private Integer id;
    /**
     * 商品id
     */
    private Integer goodsId;
    /**
     * 用户id
     */
    private Integer userId;
    /**
     * 收藏日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    /**
     * 收藏商品的详细信息
     */
    private Goods goods;
}
